//表单数据验证JS
export function formRule() {
    return {

        title: [
            {
                required: true,
                message: `请设置案例项目名称`,
                trigger: ['blur', 'change'],

            },

            {
                trigger: ['blur', 'change'],
                max: 100,
                message: `案例项目名称不超过100个字符`

            },

        ],

        period: [
            {
                trigger: ['blur', 'change'],
                required: true,
                message: `请设置项目的完工时期`
            }

        ],
        acreage: [
            {
                trigger: ['blur', 'change'],
                required: true,
                message: `请设置案例项目的面积`
            }

        ],

        digest: {
            trigger: ['blur', 'change'],
            required: true,
            max: 100,
            message: `请设置案例项目简介 100个字符以内`

        },


        picture: {
            trigger: ['blur', 'change'],
            required: true,
            message: `请上传一张案例项目的图片`
        },


        province: {
            trigger: ['blur', 'change'],
            required: true,
            message: `请设置项目所在省份`
        },

        city: {
            required: true,
            message: `请设置项目所在城市`
        },

        district: {
            trigger: ['blur', 'change'],
            required: true,
            message: `请设置项目所在区域`
        },


        address: {
            trigger: ['blur', 'change'],
            required: true,
            message: `请设置项目详细地址`
        },


        lng: {
            trigger: ['blur', 'change'],
            required: true,
            message: `请标注项目的经纬度`
        },


        content: {
            trigger: ['change'],
            required: true,
            message: `正文不能为空`
        }


    }
}
